﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ObviousCode.Stately.Compiler.Parser;
using StatelyCompiler;

namespace ObviousCode.Stately.Compiler.Validation.Expectations
{
    public class DefinedStateTransition
    {
        public Token Source { get; private set; }
        public List<Transition> ExpectedTransitions { get; private set; }


        public DefinedStateTransition(Token token)
        {            
            Source = token;
            ExpectedTransitions = new List<Transition>();
        }

        public string ExpectedMethodName
        {
            get { return (Source.IsStartState) ? "Start" : "Handle{0}".F(Source.Data); }
        }
    }
}
